package com.z.pojo;

public class Goods {
    private Integer     gid;
    private String      gname;
    private double      price;
    private Integer     gnum;
    private String      g_img;
    private String      gdesc;
    private Integer      tid;

    public Goods() {
    }

    public Goods(Integer gid, String gname, double price, Integer gnum, String g_img, String gdesc, Integer tid) {
        this.gid = gid;
        this.gname = gname;
        this.price = price;
        this.gnum = gnum;
        this.g_img = g_img;
        this.gdesc = gdesc;
        this.tid = tid;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Integer getGnum() {
        return gnum;
    }

    public void setGnum(Integer gnum) {
        this.gnum = gnum;
    }

    public String getG_img() {
        return g_img;
    }

    public void setG_img(String g_img) {
        this.g_img = g_img;
    }

    public String getGdesc() {
        return gdesc;
    }

    public void setGdesc(String gdesc) {
        this.gdesc = gdesc;
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "gid=" + gid +
                ", gname='" + gname + '\'' +
                ", price=" + price +
                ", gnum=" + gnum +
                ", g_img='" + g_img + '\'' +
                ", gdesc='" + gdesc + '\'' +
                ", tid=" + tid +
                '}';
    }
}
